package com.aatrox.bhsypro.service.impl;

import com.aatrox.bhsypro.dao.BhSyShopDao;
import com.aatrox.bhsypro.entity.BhSyShop;
import com.aatrox.bhsypro.service.BhSyShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BhSyShopServiceImpl implements BhSyShopService {

    @Autowired
    BhSyShopDao bsd;

    @Override
    public List<BhSyShop> selAllShop() {
        List<BhSyShop> list = bsd.selAllShop();
        System.out.println(list);
        return list;
    }

    @Override
    public BhSyShop selShopForSid(int sid) {
        BhSyShop bhSyShop = bsd.selShopForSid(sid);
        System.out.println(bsd);
        return bhSyShop;
    }

    @Override
    public void updateShopCount(int sid) {
        bsd.updateShopCount(sid);
    }

    @Override
    public void insertNewShop(BhSyShop bss) {
        bsd.insertNewShop(bss);
    }
}
